<!-- 引入公共部分 -->
{{extend './layout.html'}}

{{block 'link'}}
<!-- 添加css链接 -->
<link rel="stylesheet" href="/static/admin/css/storeApply.css">
{{/block}}

<!-- body代码 -->
{{block 'main'}}
    <!-- 头部导航代码 -->
    {{include './header.html'}}
    <div class="banner">
        <div class="left">
            <!-- 侧边栏 -->
            {{include './aside.html'}}
        </div>
        <div class="right">
            <div class="nav">
                <i class="iconfont shouyebeifen"></i>
                <a href="/admin">首页</a>
                <i class="iconfont zuoyoujiantou"></i>
                <a href="/admin/store/storeInspect">店铺审核</a>
                <i class="iconfont zuoyoujiantou"></i>
                <a href="/admin/store/storeApply">店铺详情</a>
            </div>
            <div class="wrap">
               <div class="applyTop">
                   <div class="imgDiv">
                       <img src="/static/admin/img/default.png" alt="">
                    </div>
                    <div class="storeMsg">
                        <span>店铺名称：{{data.shopName}}</span>
                        <span>店主姓名：{{data.realName}}</span>
                        <span>店主邮箱：</span>
                    </div>
                    <div class="storeMsgDetail">
                        <div class="msgDiv">
                            <span>{{data.time}}</span>
                            <span>状态：{{data.setting==0?'待审核':'已审核'}}</span>
                            <span>申请人姓名：{{data.realName}}</span>
                            <span>电话：17637946325</span>
                            <span>身份证号：{{data.identifyID}}</span>
                        </div>
                    </div>
               </div>
               <div class="applyDetail">
                    <span class="applyTitle">店铺介绍</span>
                    <p class="introduction ">
                        {{data.introduction}}
                    </p>
               </div>
               <div class="applyBtns">
                   <button class="btn updataBtn" name="{{data.businessId}}" onclick="openSubmitPassFun()">通过</button>
                   <button class="btn delsBtn" id="businessId" name="{{data.businessId}}" onclick="openRefuseWin()">拒绝</button>
                   <button class="btn addBtn" onclick="returnFun()">返回上一步</button>
               </div>
               <div class="reasonWin">
                   <div class="reasonTop">
                       <span>内容</span>
                       <i class="iconfont shibai" onclick="closeReasonWin()"></i >
                   </div>
                   <span class="rafusalReason">请说明拒绝该申请人申请店铺的理由，以便下次在申请时做好准备。</sp>
                    <textarea name="desc" placeholder="请输入拒绝理由" class="reasonWrap"></textarea>
                    <div class="reasonBtns">
                        <button class="btn updataBtn" id="passBtn" name="{{data.userId}}" shopName="{{data.shopName}}" onclick="submitRefuseFun()">确认</button>
                        <button class="btn delsBtn" id="refuseBtn" onclick="closeReasonWin()">取消</button>
                    </div>
               </div>
               <div class="covers" onclick="closeReasonWin()"></div>
            </div> 
        </div>
        <!-- 底部信息 -->
        {{include './footer.html'}}
        <div class="covers" onclick="closeFun()"></div>
    </div>
    {{include './tools.html'}}

{{/block}}
{{block 'script'}}
<!-- 添加js代码 -->
<script src="/static/admin/js/storeApply.js"></script>
{{/block }}
